package elcs.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import elcs.member.model.MemberService;
import elcs.member.model.MemberVO;

@Controller
public class ManageController {
	@Resource(name="memberServiceImpl")
	private MemberService memberService;
	
	@RequestMapping("/manage/manage.do")
	public String manageView(MemberVO mvo)
	{
		System.out.println("manageView");
		
		return "main.manage";
	}

	@RequestMapping("/manage/memberManage.do")
	public ModelAndView memberView(MemberVO mvo)
	{
		System.out.println("memberView");
		List<MemberVO> list=memberService.findAllMember();
		
		System.out.println(list);
		return new ModelAndView ("member.manage","list",list);
	}
	@RequestMapping("/manage/groupManage.do")
	public String groupView(MemberVO mvo)
	{
		System.out.println("groupView");
		
		return "group.manage";
	}
	
	
	
}
